home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / graphics state library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1002 b   |  39 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:
  2.     graphics state routines 
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1993 Apple Computer, Inc.  All rights reserved.    */
  5.  
  6. #pragma once
  7. #ifndef graphicsStateLibraryIncludes
  8. #define graphicsStateLibraryIncludes
  9.     #ifndef graphicsTypesIncludes
  10.         #include "graphics types.h"
  11.     #endif
  12.     
  13.     #ifdef __cplusplus
  14.     extern "C" {
  15.     #endif
  16.  
  17.     struct graphicsStateRecord {
  18.         gxShape defaultShapes[gxPictureType - 1];
  19.     };
  20.     
  21.     typedef struct graphicsStateRecord *graphicsState;
  22.     
  23.     #ifndef __cplusplus
  24.         typedef struct graphicsStateRecord graphicsStateRecord;
  25.     #endif
  26.     
  27.     extern graphicsState lastGraphicsState;
  28.     
  29.     graphicsState NewGraphicsState(void);
  30.     void DisposeGraphicsState(graphicsState);
  31.     void GetGraphicsState(graphicsState);
  32.     void SetGraphicsState(graphicsState);
  33.     graphicsState SwapGraphicsState(graphicsState);
  34.     
  35.     #ifdef __cplusplus
  36.     }
  37.     #endif
  38. #endif
  39.